package com.example.demo.entity.responseJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author : 洪俊新
 * @date : 2021/3/15 15:09
 * @description:
 */
@ApiModel("帖子收藏信息详情返回Json类")
public class PostFavoriteRes {
    /**
     *主键
     * 帖子id
     * isnull 1
     */
    @ApiModelProperty(value="帖子id", position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String postId;
    /**
     * 作者id
     * isnull 0
     */        @ApiModelProperty(value="作者id",position=2)
    private String authorId;
    /**
     * 作者昵称
     * isnull 0
     */        @ApiModelProperty(value="作者昵称",position=8)
    private String authorName;
    /**
     * 帖子标题
     * isnull 0
     */        @ApiModelProperty(value="帖子标题",position=3)
    private String postName;
    /**
     * 帖子内容
     * isnull 0
     */        @ApiModelProperty(value="帖子内容",position=4)
    private String postContent;
    /**
     * 帖子二级标签
     * isnull 0
     */        @ApiModelProperty(value="帖子二级标签",position=7)
    private String postTwolabel;
    /**
     * 帖子一级标签
     * isnull 0
     */        @ApiModelProperty(value="帖子一级标签",position=8)
    private String postOnelabel;

    public String getPostId() {
        return postId;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public String getPostContent() {
        return postContent;
    }

    public void setPostContent(String postContent) {
        this.postContent = postContent;
    }

    public String getPostTwolabel() {
        return postTwolabel;
    }

    public void setPostTwolabel(String postTwolabel) {
        this.postTwolabel = postTwolabel;
    }

    public String getPostOnelabel() {
        return postOnelabel;
    }

    public void setPostOnelabel(String postOnelabel) {
        this.postOnelabel = postOnelabel;
    }

    @Override
    public String toString() {
        return "PostFavoriteRes{" +
                "postId='" + postId + '\'' +
                ", authorId='" + authorId + '\'' +
                ", authorName='" + authorName + '\'' +
                ", postName='" + postName + '\'' +
                ", postContent='" + postContent + '\'' +
                ", postTwolabel='" + postTwolabel + '\'' +
                ", postOnelabel='" + postOnelabel + '\'' +
                '}';
    }
}
